package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.able.SgsReqAble;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author zhongzhongyong
 * @version Id: SgsBaseRequest.java, v 0.1 2018/4/5 10:08 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public abstract class SgsBaseRequest extends CommonRequest implements SgsReqAble{

    /**
     * reqTime 请求时间
     */
    @NotNull(message = "请求时间不能为空")
    private Date reqTime;

    /**
     * loginChannel 登录渠道
     */
    @NotBlank(message = "登录渠道不能为空")
    private String loginChannel;

}
